import http from '@/utils/http'

export const reqOrderPrice = (order) => {
  return http.post("/app/order/calcPrice", order)
}

export const reqOrderList = (orderQueryParams) => {
  return http.get("/app/order", orderQueryParams)
}

export const reqAddOrder = (order) => {
  return http.post("/app/order", order)
}

export const reqUpdateOrderStatus = (order) => {
  return http.put("/app/order", order)
}

export const reqRemoveOrderById = (id) => {
  return http.delete(`/app/order/${id}`,)
}